package com.qg.service.impl;

import com.qg.service.LocaLqgUserService;
import jdk.nashorn.internal.ir.annotations.Reference;
import org.springframework.stereotype.Component;

@Component
public class LocalQgUserSserviceIml implements LocaLqgUserService {
    @Reference
    private QgUserService qgUserService;

    @Override
    public QgUser LoginUser(String phone, String password) throws Exception {
       QgUser qgUser= qgUserService.queryQgUserByPhoneAndPwd(Phone,password);
        if (EmptyUtils.isEmpty(qgUser)){
    return null;
        }
       String userjson= JSON.toJSONString(qgUser);
        redisUtil.setStr(qgUser.getid(),userjson);
        return null;
    }
}
